function switchMenu(){
	//var menuHeight = $('#td_menu').height();
	//$('#td_switch').height(menuHeight);
	
    $('#switch').animate({width: 'toggle', opacity: 'toggle'}, 'slow','linear');
    
    id = $('.side_nav');
    id_desc = id.attr('id');
    id_desc_img = id.css('background-image');
    
	if (id_desc.indexOf("left") != -1 ){
		id.attr('id', id_desc.replace('left','right'));
		id.css('background-image', id_desc_img.replace('right','left'));
	}
	else {
		id.attr('id', id_desc.replace('right','left'));
		id.css('background-image', id_desc_img.replace('left','right'));
	}
	
    return false;
}

function convertFormat() {
	document.getElementById("formRel:valor").value = document.getElementById("formRel:valor").value.toString().replace(/\./g,',');
    //alert(document.getElementById("formRel:valor").value.toString().replace(/\./g,','));
	return true;
 }

PrimeFaces.locales['pt_BR'] = {
	    closeText : 'Fechar',
	    prevText : 'Anterior',
	    nextText : 'Próximo',
	    currentText : 'Hoje',
	    monthNames : [ 'Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho','Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro' ],
	    monthNamesShort : [ 'Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago','Set', 'Out', 'Nov', 'Dez' ],
	    dayNames : [ 'Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta','Sábado' ],
	    dayNamesShort : [ 'Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb' ],
	    dayNamesMin : [ 'D', 'S', 'T', 'Q', 'Q', 'S', 'S' ],
	    weekHeader : 'Semana',
	    firstDay : 1,
	    isRTL : false,
	    showMonthAfterYear : false,
	    yearSuffix : '',
	    timeOnlyTitle : 'Só Horas',
	    timeText : 'Tempo',
	    hourText : 'Hora',
	    minuteText : 'Minuto',
	    secondText : 'Segundo',
	    ampm : false,
	    month : 'Mês',
	    week : 'Semana',
	    day : 'Dia',
	    allDayText : 'Todo Dia'
	};

